package com.zxjbyte.yiyi.framework.common.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 键值对Bean
 * @Author zhangxingjia
 * @Date 2023/3/15 17:12
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class KvBean<K, V> implements Serializable {
    private static final long serialVersionUID = 1L;

    private K key;
    private V value;

    public static <K, V> KvBean<K, V> create() {
        return new KvBean<>();
    }
}
